package com.wangyu.talents.web.system.role.model;

import com.wangyu.talents.core.entity.DataEntity;
import java.util.List;
import java.util.Map;

/**
 * 角色实体
 *
 * @author wangyu
 * @Date 2018-09-03 22:14
 */
public class Role extends DataEntity<Role> {

  private static final long serialVersionUID = 210982094987558112L;


  /**
   * 主键
   */
  private Long id;

  /**
   * 名称
   */
  private String name;

  /**
   * 标识
   */
  private String flag;

  /**
   * 描述
   */
  private String description;

  /**
   * 资源权限集合
   */
  private Map<Long, String[]> resourceFlags;

  public Role() {
  }

  public Role(String name, String flag, String description) {
    this.name = name;
    this.flag = flag;
    this.description = description;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getFlag() {
    return flag;
  }

  public void setFlag(String flag) {
    this.flag = flag;
  }

  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public Map<Long, String[]> getResourceFlags() {
    return resourceFlags;
  }

  public void setResourceFlags(Map<Long, String[]> resourceFlags) {
    this.resourceFlags = resourceFlags;
  }
}
